/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-05-27
 * Time: 23:42
 */
public class Test13 {
    public static void main(String[] args) {
        String str = "name=泡泡&age=21" ;

        String[] result = str.split("&") ;

        for (int i = 0; i < result.length; i++) {
            String[] s = result[i].split("=") ;
            System.out.println(s[0]+" = "+s[1]);
        }
    }
}
